package org.tc.platform.service;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.platform.entity.Stores;

import java.util.List;

@RequestMapping("/StoresService")
public interface StoresService {

    //查询分店名称
    @PostMapping("/selectname")
    List<Stores> selectname();

    @RequestMapping("/deleteByPrimaryKey")
    int deleteByPrimaryKey(@RequestParam("id") Integer id);

    @RequestMapping("/insert")
    int insert(Stores record);

    @RequestMapping("/selectByPrimaryKey")
    Stores selectByPrimaryKey(Integer id);

    @RequestMapping("/selectAll")
    List<Stores> selectAll();

    @RequestMapping("/updateByPrimaryKey")
    int updateByPrimaryKey(Stores record);

    @RequestMapping("/InsStores")
    int InsStores(@RequestParam("name") String name,
                  @RequestParam("region") String region);

}
